home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 4167 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  984 b 

  1. Path: mail2news.demon.co.uk!hpl3sn03.cern.ch
  2. From: Dan Pop <danpop@mail.cern.ch>
  3. Newsgroups: comp.lang.c
  4. Subject: Re: C type question
  5. Date: Fri, 2 Feb 1996 13:28:20 +0100
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <9602021228.AA29867@dxmint.cern.ch>
  8. References: <Pine.SUN.3.91.960202131027.20090A-100000@sun19.cs.cuhk.hk>
  9. X-NNTP-Posting-Host: hpl3sn03.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11. X-Mail2News-Path: dxmint.cern.ch!hpl3sn03.cern.ch
  12.  
  13. Cheung ming wai <mwcheung@cs.cuhk.hk> writes:
  14.  
  15. >Do I get something wrong in the printf()?
  16. >What is the argument used for long double? %e? %g? %lf?
  17.  
  18. Have you checked your book?  What does it say?
  19.  
  20. Mine (K&R2) says that there is no such thing as %lf (for printf) and
  21. that the correct conversion specifications for a long double are %Lf,
  22. %Le and %Lg (you can use %LG and %LE as well).
  23.  
  24. Dan 
  25. -- 
  26. Dan Pop
  27. CERN, CN Division
  28. Email: danpop@mail.cern.ch 
  29. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  30.